import java.util.Scanner;

public class TestDemo {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int n= scan.nextInt();
        System.out.print(n+"=");
        for(int i=2;i<=n;i++) {
            while(n%i==0) {
                System.out.print(i);
                n/=i;
                if(n!=1) {
                    System.out.print("*");
                }
            }
    }

    }
}
